import request from '@/utils/request'

export const loginAPI = (data) => {
  return request({ url: '/sys/login', method: 'post', data })
}
// 修改用户密码 /sys/user/updatePass
export const updatePassAPI = (data) => {
  return request({ url: '/sys/user/updatePass', method: 'put', data })
}

export const getUserInfoAPI = () => {
  return request({ url: '/sys/profile' })
}
